<?php
class Admin_Form_ChuDeForm extends Zend_Form
{
	public function __construct($option = null)
	{
		parent::__construct($option);
		ZendX_JQuery::enableForm($this);
		$this->setName('chude');

		$tenchude = new Zend_Form_Element_Text('tenchude');
		$tenchude->setLabel('Tên chủ đề:')
		->setOptions(array('class' => 'inp-form'))
		->setRequired(true);
		
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setOptions(array('class' => 'form-submit'));
		$reset = new Zend_Form_Element_Reset('reset');
		$reset->setOptions(array('class' => 'form-reset'));
		
		$this->addElements(array($tenchude,$submit,$reset));
		foreach($this->getElements(array($submit,$reset)) as $element)
		{
			$element->removeDecorator('DtDdWrapper');
		}
	}
}